package logmanager.view_properties;

import javax.swing.JRadioButton;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

//classe d'action de changement du bouton radio
public class ActionChangeRadio implements ChangeListener {
	private PropertiesView pv;
	
	public ActionChangeRadio(PropertiesView pv) {
		super();
		this.pv = pv;
	}

	public void stateChanged(ChangeEvent e) {
		boolean b = ((JRadioButton)e.getSource()).isSelected();
		if(b){
			pv.comboColor.setEnabled(true);
		}else{
			pv.comboColor.setEnabled(false);
		}
	}


}
